<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>

</body>
<script src="./index.js"></script>
<script>
	const p = new Promise((resolve,reject)=>{
		reject(100);
	})
	p.then(undefined,reason=>{
		console.log("失败回调1",reason)
	});
	
	p.catch(reason=>{
		console.log("失败回调2",reason);
	})
</script>

</html>